<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.Home}"/>
        </ui:define>
        <ui:define name="body">
            <div class="button">
                <h:link outcome="/journeyreservation/Create" rendered="#{request.isUserInRole('user')}" >
                    <h:graphicImage value="resources/images/journey_reservation.png" width="64" height="64"/>
                    <h:outputText value="Create Journey Reservation"/>
                </h:link>
            </div>
            <div class="button">
                <h:link outcome="/hotelreservation/Create" rendered="#{request.isUserInRole('user')}" >
                    <h:graphicImage value="resources/images/hotel_reservation.png"/>
                    <h:outputText value="Create Hotel Reservation"/>
                </h:link>
            </div>
            <div class="button">
                <h:link outcome="/carreservation/Create" rendered="#{request.isUserInRole('user')}" >
                    <h:graphicImage value="resources/images/car_reservation.png"/>
                    <h:outputText value="Create Car Reservation"/>
                </h:link>
            </div>
            <div style="clear: left">
            <h:link outcome="/car/List" value="Show All Car Items" rendered="#{request.isUserInRole('admin')}" /><br />

            <h:link outcome="/carreservation/List" value="Show All Carreservation Items" rendered="#{request.isUserInRole('admin')}" /><br />

            <h:link outcome="/hotel/List" value="Show All Hotel Items" rendered="#{request.isUserInRole('admin')}" /><br />

            <h:link outcome="/hotelreservation/List" value="Show All Hotelreservation Items" rendered="#{request.isUserInRole('admin')}" /><br />

            <h:link outcome="/journey/List" value="Show All Journey Items" rendered="#{request.isUserInRole('admin')}" /><br />

            <h:link outcome="/journeyreservation/List" value="Show All Journeyreservation Items" rendered="#{request.isUserInRole('admin')}" /><br />

            <h:link outcome="/room/List" value="Show All Room Items" rendered="#{request.isUserInRole('admin')}" /><br />
            
            <h:link outcome="/pickuplocation/List" value="Show All Pickup Items" rendered="#{request.isUserInRole('admin')}" /><br />
            <h:link outcome="/users/List" value="Show All Users" rendered="#{request.isUserInRole('admin')}" /><br />
            <h:link outcome="/groups/List" value="Show All groups" rendered="#{request.isUserInRole('admin')}" /><br />
            
            </div>
        </ui:define>
    </ui:composition>
</html>

